#ifndef _Sick_Eth_DataPro_
#define _Sick_Eth_DataPro_
#include "stm32f4xx.h"
#include "Sick_V2.h"
#include "GlobalData.h"


#define    Eth_Queue_Max		(2)
typedef struct{		
	  uint8_t  *Pdata;	  
		uint8_t Is_Set;
		uint16_t  size;
}BufferInfo;
typedef struct{		
	  BufferInfo  Queue[Eth_Queue_Max];	  
		uint8_t 	size;
		uint8_t  	tail;
		uint8_t  	head;
}BufferQueue;

typedef struct{
		uint8_t start;
		uint8_t valid;
		uint8_t complete;
		uint32_t startangle;
		uint16_t anglestep;
		uint16_t len;
		int16_t data[Max_DataNum+1];
}SickMoni;

extern SickMoni  				Moni_flag;
extern BufferQueue			Eth_RxQueue;

extern void Eth_Data_process(void);
extern void Eth_Data_process_ontime(Eth_RxBuffer* PBuffer);
#endif
